and be sure to set `font-lock-core-only'.
(use-local-map occur-mode-map)
(setq major-mode 'occur-mode)
(setq mode-name "Occur")
- (make-local-variable 'revert-buffer-function)
(set (make-local-variable 'revert-buffer-function) 'occur-revert-function)
+ (set (make-local-variable 'font-lock-defaults)
+ '(nil t nil nil nil (font-lock-core-only . t)))
(make-local-variable 'occur-revert-arguments)
(run-hooks 'occur-mode-hook))